package cn.jsj.finance.bank;

import java.io.IOException;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * 图形化报表查看处理类
 * @author LI
 *
 */
 public class FigureChartRequest extends javax.servlet.http.HttpServlet implements javax.servlet.Servlet {
	 public void service(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
		// 调试信息
		 cn.jsj.utils.SysLogger.PrintInfo("进入图形化报表查看处理类！！");

		 //获得报表种类代码
		 int catalogId=Integer.parseInt(request.getParameter("figureChartCatalog").trim());

		 //调试信息
		 cn.jsj.utils.SysLogger.PrintInfo("canshu wei ------->"+catalogId);

		 //获取报表信息
		 cn.jsj.dao.TblBankAccountDAO tbad=new cn.jsj.dao.TblBankAccountDAO();
		 String result=tbad.getFigureChartData(catalogId);

		 //调试信息
		 cn.jsj.utils.SysLogger.PrintInfo("结果----->"+result);
		 //输出流
		 java.io.PrintWriter out=response.getWriter();

		 //输出结果到客户端
		 out.println(result);;
		 out.flush();
		 out.close();
	}
}